import React, {useContext} from "react";
import {TestContext} from "./index";

export const A = () => {
	const {userName,color1} = useContext(TestContext)
	return <div style={{color:color1}}>A组件获取到了:{userName}</div>
}
